Skip to content

chore(dev): prepare QuickAdd in T3 worktrees and sandboxes - #2223

Merged
chhoumann merged 1 commit into
masterfrom
chore/t3-sandbox-setup
Oct 12, 2026
Merged

chhoumann merged 1 commit into
masterfrom
chore/t3-sandbox-setup

Conversation

@chhoumann

@chhoumann chhoumann commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

New QuickAdd worktrees and sandboxes in T3 need dependencies and a built plugin before the first agent turn. Add a repository setup hook so this works from the default branch.

Changes

  • Run pnpm install --frozen-lockfile --prefer-offline && pnpm run build when T3 creates a worktree.
  • Wait for setup to finish before starting the agent. Setup installs dependencies and generates build files inside the new workspace.

Testing / validation

  • pnpm run build-with-lint passed.
  • pnpm test passed: 6,864 tests, with 32 skipped.
  • Launched a fresh sandbox through T3's native desktop app. Dependencies and main.js existed before the first agent action.
  • .agents/run-e2e tests/e2e/cli-list-writes.test.ts passed both tests in isolated Obsidian 1.13.7. The checkout stayed clean.

Checklist

  • PR title follows Conventional Commits.
  • Related issues: none.
  • Release/migration impact: development setup only; no plugin behavior change or data migration.

Model: GPT-6. Harness: Codex.

Note

Add QuickAdd setup script to T3 worktree and sandbox config

Adds a T3 setup script in t3.json that runs a frozen, offline-preferred pnpm install followed by pnpm run build when a worktree is created. The script uses the configure icon and runs synchronously.

Macroscope summarized 211d752.

Summary by CodeRabbit

  • Chores
    • Creating a worktree now automatically installs project dependencies and builds the project. The setup runs synchronously and uses a frozen lockfile with offline installation preference.

@chhoumann
chhoumann marked this pull request as ready for review October 12, 2026 07:07
@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3a8a729e-6539-4ca9-8d66-a11441f702e3

📥 Commits

Reviewing files that changed from the base of the PR and between 1cae501 and 211d752.


📒 Files selected for processing (1)
  • t3.json

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.



📝 Walkthrough

Walkthrough

The new t3.json configuration runs a synchronous QuickAdd setup script when a worktree is created. The script installs dependencies with a frozen lockfile and offline preference, then builds the project.

Changes

QuickAdd worktree setup

Layer / File(s) Summary
Configure worktree setup
t3.json
Adds a QuickAdd setup script that runs pnpm install --frozen-lockfile --prefer-offline and then pnpm run build on worktree creation. The script uses the configure icon and is synchronous.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other


Merge Risk: ⚪ Minimal · up to 211d7

The change is limited to preparing new worktrees, and no actionable merge-blocking risk is evident in the supplied context.

Pre-merge checks | Passed 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: preparing QuickAdd in T3 worktrees and sandboxes.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the worktree path
Then gathers packages in its math
The lockfile holds each version tight
A build runs next, all neat and right
The rabbit hops away at last

Comment @coderabbitai help to get the list of available commands.

@chhoumann
chhoumann merged commit fe9ec87 into master Oct 12, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant